package com.crape.account.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.crape.account.bo.IImageInfoBO;
import com.crape.account.dao.IImageInfoDAO;
import com.crape.common.exceptions.BOException;
import com.crape.common.model.ImageInfo;

public class ImageInfoBOImpl implements IImageInfoBO {
	
	private IImageInfoDAO imageInfoDAOImpl;
	
	@Autowired
	public void setImageInfoDAOImpl(IImageInfoDAO imageInfoDAOImpl) {
		this.imageInfoDAOImpl = imageInfoDAOImpl;
	}

	@Override
	public void insertImageInfo(ImageInfo imageInfo) throws BOException {
		imageInfoDAOImpl.insertImageInfo(imageInfo);
	}

	@Override
	public ImageInfo queryImageInfoById(Long id) throws BOException {
		return imageInfoDAOImpl.queryImageInfoById(id);
	}

	@Override
	public ImageInfo queryImageInfoByName(String name) throws BOException {
		return imageInfoDAOImpl.queryImageInfoByName(name);
	}

}
